package com.qf.springMybatisRandomUser.service.impl;

import com.qf.springMybatisRandomUser.dao.UserDao;
import com.qf.springMybatisRandomUser.entity.User;
import com.qf.springMybatisRandomUser.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.awt.print.Book;
import java.util.List;

/**
 * @author 刘欣
 * @createTime 2023/1/2 18:16
 * @description
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    @Override
    public List<User> selectPage(Integer start, Integer pageSize) {
        List<User> users = userDao.selectPage(start, pageSize);
        return users;
    }

    @Override
    public Integer insert(List<User> users) {
        Integer i = userDao.insert(users);
        return i;
    }

}
